#include "ParticleEmitter.h"

std::list<Particle*> ParticleEmitter::activeParticles;
std::list<Particle*> ParticleEmitter::inactiveParticles;

ParticleEmitter::ParticleEmitter(){
	particleType = 0;
}
ParticleEmitter::~ParticleEmitter(){}
bool ParticleEmitter::Initialize(unsigned int particle_type){

	return true;
}
bool ParticleEmitter::Update(){
	return true;
}
bool ParticleEmitter::Deinitialize(){
	return true;
}
void ParticleEmitter::Shoot(){
	//allocate a particle from the pool and shoot it
	Particle* p = new Particle();
	p->SetX(GetX());
	p->SetY(GetY());
	p->SetLife(life);
	ActivateParticle(p);

}

void ParticleEmitter::ActivateParticle(Particle* p){
	activeParticles.push_back(p);
}
